package icegps.com.pingdj.adapter;


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import icegps.com.pingdj.R;
import icegps.com.pingdj.bean.KeyValue;


/**
 * Created by 111 on 2017/12/28.
 */

public class MapInfoAdapter extends BaseQuickAdapter<KeyValue, BaseViewHolder> {

    public MapInfoAdapter(int layoutResId, @Nullable List<KeyValue> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, KeyValue keyValue) {
        helper.setText(R.id.tv_key, keyValue.getKey())
                .setText(R.id.tv_value, keyValue.getValue())
                .setText(R.id.tv_value_unit, keyValue.getUnit());
    }
}
